package com.woniuxy.dao;

import com.woniuxy.pojo.ServerMenu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ServerMenuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ServerMenu record);

    int insertSelective(ServerMenu record);

    ServerMenu selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ServerMenu record);

    int updateByPrimaryKey(ServerMenu record);


    @Select("select * from server_menu where parent_id = #{id}")
    List<ServerMenu> findMenu(Long id);

    List<ServerMenu> findByIds(@Param("lists") List<Long> menusId);
}